<template>
<div>
    电影详情
    <hr>
    {{$route.params.id}}
</div>
</template>

<script>
export default {
 data () {
return {
    id:0,
}
 },
 mounted () {
    //  this.id = this.$route.params.id || 100
     if(this.$route.params.id){
         this.id = this.$route.params.id
     }else{
         this.id = 100
     }
},
}
</script>

<style scoped>

</style>
